package com.mkh.st.admin.api.vo;

import com.mkh.st.admin.api.dto.TreeNode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@ApiModel(value = "角色分配菜单树")
@EqualsAndHashCode(callSuper = true)
public class RoleMenuTree extends TreeNode implements Serializable {
	/**
	 * 菜单名称
	 */
	@ApiModelProperty(value = "菜单名称")
	private String name;

	/**
	 * 菜单类型 （0菜单 1按钮）
	 */

	@ApiModelProperty(value = "菜单类型,0:菜单 1:按钮")
	private Integer type;

	@ApiModelProperty(value = "类型名称")
	private String typeName;

	@ApiModelProperty(value = "选中标记:0未选中，1已选中")
	private Integer keepAlive;

	/**
	 * 是否包含子节点
	 *
	 * @since 3.7
	 */
	private Boolean hasChildren;
}
